-- GENERATED SPELL FOR [Scarlet Gallant] --


function spell0_4287(pUnit, Event) --@Crusader Strike,n/a--
pUnit:FullCastSpellOnTarget(14517,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4287', 30307, 1)
end

function spell1_4287(pUnit, Event) --@Hammer of Justice,n/a--
pUnit:FullCastSpellOnTarget(5589,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4287', 5339, 1)
end

function Sorts_4287(pUnit, Event)
local choix_sorts_4287 = math.random(0, 1)
if choix_sorts_4287 == 0 then
pUnit:RegisterEvent('spell0_4287', 1, 1)
end
if choix_sorts_4287 == 1 then
pUnit:RegisterEvent('spell1_4287', 1, 1)
end
end

function mob4287_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4287', math.random(1500, 3000), 1)
end

function mob4287_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4287_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4287_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4287, 1, 'mob4287_Action')
RegisterUnitEvent(4287, 2, 'mob4287_Leave')
RegisterUnitEvent(4287, 3, 'mob4287_Kill')
RegisterUnitEvent(4287, 4, 'mob4287_Die')
